package com.cdks.wuxiu.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.api.model.dto.MoodTopicInfoDTO;
import com.cdks.wuxiu.entity.mysql.MoodTopicInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;


/**
 * 心情主题表 Mapper 接口
 */
public interface MoodTopicInfoMapper extends BaseMapper<MoodTopicInfo> {
    List<MoodTopicInfoDTO> getListAll(@Param("userId") long userId, @Param("groupId") int groupId, @Param("offset") int offset, @Param("pageSize") int pageSize);
    List<MoodTopicInfoDTO> getListFans(@Param("userId") long userId, @Param("groupId") int groupId, @Param("offset") int offset, @Param("pageSize") int pageSize);
    List<MoodTopicInfoDTO> getListMine(@Param("userId") long userId, @Param("groupId") int groupId, @Param("offset") int offset, @Param("pageSize") int pageSize);
    List<MoodTopicInfo> getListByUser(@Param("offset") int offset, @Param("pageSize") int pageSize, @Param("userId") long userId, @Param("isSelf") long isSelf);
    
    MoodTopicInfoDTO getDetailById(@Param("topicId") long topicId);
    
    int addReplyCount(@Param("topicId") long topicId);
}
